import { Component } from '@angular/core';

@Component({
  selector: 'app-zero',
  templateUrl: './zero.component.html',
  styleUrls: ['./zero.component.css'],
})
export class ZeroComponent {
  age = 0;
  btnClick() {
    if (this.age <= 30) {
      this.age += 10;
    } else {
      this.age = 10;
    }
  }
}
